package com.android.wellcherish.workclock.view;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.android.wellcherish.workclock.R;
import com.android.wellcherish.workclock.bean.data.IBaseBean;
import com.android.wellcherish.workclock.bean.data.ModeRecord;
import com.android.wellcherish.workclock.constant.Mode;
import com.android.wellcherish.workclock.util.ModeUtil;
import java.util.List;

/**
 * @author 张文琛
 * @date 2019/11/8 21:20
 */
public abstract class RecordBaseViewHolder extends RecyclerView.ViewHolder {
    private View view;
    protected Context context;
    protected List<ModeRecord> data;

    public RecordBaseViewHolder(@NonNull Context context, @NonNull View itemView) {
        super(itemView);
        this.context = context;
        this.view = itemView;
    }

    /**
     * 绑定数据
     * */
    public View getView() {
        return view;
    }

    public abstract void onBindViewHolder(@NonNull IBaseBean baseBean, int position);

    interface ViewType {
        int HEAD = 10001;
        int CONTENT = 10002;
        int UNKNOWN = -10;
    }
}
